set iverilog_path=C:\iverilog\bin;
set gtkwave_path=C:\iverilog\gtkwave\bin;
set path=%iverilog_path%%gtkwave_path%%path%

iverilog -s counter_tb -o counter_tb.vvp counter_tb.v counter.v
vvp counter_tb.vvp
